﻿using Server.Contract;
using Server.Dto;
using System.Collections.Generic;
using System.ServiceModel;

namespace Server.Core.Contract
{
    /// <summary>
    /// publish service implemention
    /// </summary>
    [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Reentrant)]
    public partial class ServerService : IPublishService
    {
        public void Publish()
        {
            throw new System.NotImplementedException();
        }

        public List<ProductDto> GetProducts()
        {
            return _businessService.GetProducts(string.Empty);
        }

        public void SaveProduct(ProductDto product)
        {
            _businessService.SaveProduct(product);
        }

        public void DeleteProduct(ProductDto product)
        {
            _businessService.DeleteProduct(product);
        }
    }
}
